package com.eighth.decorator;

/**
 * Author Name: Justice
 * Project Name: Stage11
 * File Name: EggDecorator
 * Package Name: com.eighth.decorator
 * Date: 2020-03-27 13:24
 * Copyright (c) 2020,All Rights Reserved.
 * 鸡蛋装饰类
 */


public class EggDecorator extends AbstractDecorator {
    EggDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }

    @Override
    protected String getDesc() {
        return super.getDesc() + "加一个鸡蛋";
    }

    @Override
    protected int cost() {
        return super.cost() + 1;
    }
}
